home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
boot
/
czesc_2
/
wiconify
/
wiconsetter.lzh
/
wIconCutter
/
wIconCutter.doc
< prev
next >
Wrap
Text File
|
1991-04-19
|
6KB
|
137 lines
OVERVIEW:
WICONCUTTER is a companion program to WICONIFY and WICONSETTER. It allows
you to select a region on any screen and converts it to an icon file ready
for use with wIconSetter. wIconCutter can produce IMAGE, SELECT and MASK
data for icons, and can combine this information with existing files, or
create new icon files.
HOW TO USE WICONCUTTER:
To start wIconCutter, simply issue the wIconCutter command at a CLI prompt:
1> WICONCUTTER filename
where 'filename' is replaced by the name of the icon file that you want to
create. wIconCutter will erase any old file by this name, so be careful
that you use the correct name.
Once wIconCutter is installed, it will give a brief message to that effect,
and you can choose the area you want to convert to an icon. Simply select
the screen that contains the imagery you want to use, and when you are ready
to cut it, hold down the SHIFT key and drag a rectangular select box that
encloses the image you want. When you let go of the left button,
wIconCutter will write the icon file.
Since you have to be holding down the SHIFT key to begin the selection
process, you can still use the left button for selecting screens, depth
arranging windows, etc, even after wIconCutter is running. Just don't hold
down SHIFT until you are ready to start the selection.
If you decide that you don't want to make an icon after all (or if you have
give the wrong file name), simply press CTRL-C instead of starting a selection.
You may press CTRL-C to cancel wIconCutter even after you have started
dragging; just be sure to do it while you are still holding the left mouse
button down. Once you let go of the left mouse button, wIconCutter will begin
to write the icon file.
Once you have begun a selection, you may decide that the box is not in the
correct position. In this case, you can hold down the right mouse button
while you are dragging the box (i.e., without letting go of the left
button); now when you move the mouse, the box will change location rather
than size. When you let go of the right button (while still holding the
left down), you can continue to size the selection box as normal. This
gives you very precise control of the position and size of the selection as
you make it.
Note that the selected image includes the pixels that are part of the
selection frame itself. For example, if you push the selection box all the
way to the upper left, your selection will start at the very first pixel of
the very first row of the screen.
wIconCutter was designed to clip relatively small sections of screen, so you
should not use it to make icons larger than say 100 x 100 pixels (wIconify
doesn't want icons larger than 78 by 32 anyway).
WICONCUTTER OPTIONS:
There are a number of command-line options that you can specify when you
start wIconCutter. They include:
IMAGE create an IMAGE command and its data
SELECT create a SELECT command and its data
MASK create a MASK command and its data
APPEND append the command to a file rather than rewrite it
PLANES n select the bit-planes to include in the image
The default action is to create a new file with an IMAGE command. You may
specify IMAGE and MASK together, or SELECT and MASK (or even IMAGE, SELECT
and MASK all at once), in which case the commands and data will be written
for both or all three types of images.
The mask bits are simply the logical OR of all the bits in the image. That
is, for any given pixel position within the image, the mask bit is 0 if the
pen color at that position was 0 and is 1 otherwise. Note that this means
that color-0 pixels that are interior to the image will NOT be included
(as 1's) in the image mask. For example, if you clip the following image:
22222222222222222222222
00220000000002211112200
00220000000002211112200
00220000000002211112200
22222222222222222222222
the image mask would be:
11111111111111111111111
00110000000001111111100
00110000000001111111100
00110000000001111111100
11111111111111111111111
You might wish to modify the mask by hand to become
11111111111111111111111
00111111111111111111100
00111111111111111111100
00111111111111111111100
11111111111111111111111
if you wanted to include the interior color-0 pixels as part of the image.
The APPEND option is convenient for adding a SELECT image to an icon that
already has an IMAGE, or a MASK to one that has an IMAGE or SELECT image.
If you do NOT specify APPEND, wIconCutter will REPLACE the icon file, if it
already exists.
The PLANES option lets you select only a few of the bitplanes from a multi-
plane image. The number that follows the PLANES option is a Hex value that
represents PlanePick mask similar to the ones used in the Intuition Image
structure: wherever ther is a 1 in the binary representation of the
PlanePick number, that bitplane is included in the image; where there's a 0,
that plane is ignored.
WARNING:
wIconCutter currently looks in the Intuition private area of the
IntuitionBase structure in order to find the mouse movement limits. It is
likely that this will cause wIconCutter to fail in a future version of
Intuition. In this case, a re-compile may be all that's necessary; if not,
the Intuition private lookup appears in only one part of the code, and it
can be modified if needed.
AUTHOR:
Davide P. Cervone
Mathematics Department
Brown University
Providence, Rhode Island 02912
ST402523@BROWNVM